package cn.shyouchi.wuguanjia.android.ui.completeinfo;

import android.graphics.Color;

/**
 * Created by Eenie on 2016/10/19 at 11:29
 * Email: 472279981@qq.com
 * Des:
 */

public class UserInfoModel {
    public static final int INFO_TYPE_HEIGHT = 0;
    public static final int INFO_TYPE_EDU = 1;
    public static final int INFO_TYPE_MARRIAGE = 2;
    public static final int INFO_TYPE_ADDR = 3;
    public static final int INFO_TYPE_CONTACTS = 4;
    public static final int INFO_TYPE_FIRM = 5;
    public static final int INFO_TYPE_TRADE = 6;
    public static final int INFO_TYPE_SKILL = 7;
    public static final int INFO_TYPE_CHANNEL = 8;


    public static final int INPUT_TYPE_FIELD = 0;
    public static final int INPUT_TYPE_PARAGRAPH = 1;


    private static final int COLOR_FILLED = Color.GRAY;
    private static final int COLOR_NOTFILL = Color.parseColor("#1786FF");
    private static final int COLOR_FILLERROR = Color.RED;

    private int icon;
    private String name;
    private String value;
    private int type;
    private boolean notNull;
    private boolean filled;
    private int txtColor = COLOR_NOTFILL;

    public UserInfoModel(int type, int icon, String name, boolean notNull) {
        this.type = type;
        this.icon = icon;
        this.name = name;
        this.notNull = notNull;
    }


    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
        txtColor = COLOR_FILLED;
        filled = true;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isNotNull() {
        return notNull;
    }

    public void setNotNull(boolean notNull) {
        this.notNull = notNull;
    }

    public int getTxtColor() {
        return txtColor;
    }

    public void setFillError() {
        this.txtColor = COLOR_FILLERROR;
    }

    public boolean isFilled() {
        return filled;
    }


}
